import axios from 'src/util/axios'

// 按班级根据日期筛选
const getDataList = params => axios('post', '/school-order/statement-by-merchant', params)

// 按班级缴费流水
const getWaterList = params => axios('post', '/school-order/statement-by-merchant-school-water', params)

// 按班级统计信息
const getCountInfo = params => axios('post', '/school-order/count-payment-info-by-statement', params)

// 按班级结算明细
const getStatementDetail = params => axios('post', '/school-order/statement-by-merchant-school-detail', params)

// 按通道根据日期筛选
const getDataListChannel = params => axios('post', '/channel_statement/get-list', params)

// 按通道结算列表统计信息
const getCountInfoChannelIndex = params => axios('post', '/channel_statement/count', params)

// 按通道结算明细
const getStatementDetailChannel = params => axios('post', '/channel_statement/get-list-by-detail', params)

// 按通道结算明细统计信息
const getCountInfoChannel = params => axios('post', '/channel_statement/count-by-detail', params)

// 按通道缴费流水项目
const getCountInfoWaterOption = params => axios('get', '/school-payment-sku/find-all-by-channel', params)

// 按通道缴费流水列表
const getCountInfoWaterList = params => axios('post', '/channel_statement/statement-by-water', params)

// 按通道缴费流水统计信息
const getCountInfoWaterInfo = params => axios('post', '/channel_statement/count-statement-by-water', params)

// 结算详情信息
const getPaymentInfo = params => axios('post', '/school-order/statement-detail', params)

export {
  getDataList,
  getStatementDetail,
  getWaterList,
  getCountInfo,
  getPaymentInfo,
  getDataListChannel,
  getCountInfoChannelIndex,
  getStatementDetailChannel,
  getCountInfoChannel,
  getCountInfoWaterOption,
  getCountInfoWaterList,
  getCountInfoWaterInfo
}
